package com.tanhua.model.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 喜欢关系表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "user_like")
public class UserLike implements java.io.Serializable{

    private static final long serialVersionUID = 6739966698394686523L;
    
    private ObjectId id;
    @Indexed
    private Long userId;      //登录人id
    @Indexed
    private Long likeUserId;   //关系人id
    private Boolean isLike;
    private Long created; 		   //发表时间
    private Long updated;  		   //更新时间
}